package com.cyt.sys.service;

import com.cyt.base.model.dto.ReturnResult;

import com.cyt.sys.model.po.SysRoleRule;
import com.cyt.sys.model.vo.SysRoleRuleVo;


/**
 * 角色数据权限service接口类
 *
 * @author shengQiang yu
 * @date 2019-03-22 10:04
 */
public interface SysRoleRuleService extends BaseService<SysRoleRule> {
    /**
     * 根据角色id删除
     *
     * @param roleId 角色Id
     * @return
     * @author shengQiang yu
     * @date 2019-03-22 15:48
     */
    int deleteByRoleId(String roleId);

    /**
     * 添加或修改
     *
     * @param sysRoleRuleVo 对象
     * @return
     * @author shengQiang yu
     * @date 2019-03-22 10:07
     */
    ReturnResult addOrUpdate(SysRoleRuleVo sysRoleRuleVo);
}
